package com.xiaoma.verbal.component;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;
@Component
public class HandlerFailThread {
	Map<String, String> fail = new HashMap<String, String>();
	

	public void putFail(String url, String status) {
		synchronized (fail) {
			fail.put(url, status);
		}
	}



	

	public void printFailUrl() {
		for (Map.Entry<String, String> m : fail.entrySet()) {
			System.out.println("****fail:url:" + m.getKey() + "  code :"
					+ m.getValue());
		}
	}
}
